<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<c:set var="contextPath" value="<%=request.getContextPath()%>"></c:set>
 <c:if test="${not empty curDivision.categories }">
			<div id="subTab" class="subTabs">
				
				<c:forEach items="${curDivision.categories}" var="cate" varStatus="vs">
					<c:choose>
						<c:when test="${((curCategory != null) && (curCategory.id eq cate.id)) || (curCategory == null && cate.id == 0)}">
							<c:set var="subTabClass" value="cur_sub_tab"></c:set>
						</c:when>
						<c:otherwise>
							<c:set var="subTabClass" value="sub_tab"></c:set>
						</c:otherwise>
						
					</c:choose>
					<div class="${subTabClass}" ><span onclick="window.location.href='${contextPath}/viewArticle?division.id=${curDivision.id}&category.id=${cate.id}'">${cate.cateName}</span></div>
				</c:forEach>
				<c:choose>
					<c:when test="${ empty curCategory}">
						<c:set var="subTabClass" value="cur_sub_tab"></c:set>
					</c:when>
					<c:otherwise>
						<c:set var="subTabClass" value="sub_tab"></c:set>
					</c:otherwise>
				</c:choose>
				<c:if test=""></c:if>
				<div class="${subTabClass}" style="float: right;padding-right: 0;"><span onclick="shareMy('${user.userName}','${contextPath}/editArticle?division.id=${curDivision.id}', '${contextPath}/viewLogin')">分享我的..</span></div>
			</div>
			</c:if>